#!/usr/bin/python3
import re
with open('secure') as f:
    for i in f:
        #if re.findall('(?:19[2-9]|2[0-1][0-9]|22[0-3])(?:\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}',i):
        if re.findall('(?:19[2-9]|2[0-1][0-9]|22[0-3])(?:\.[0-9]|\.[1-9][0-9]|\.1[0-9][0-9]|\.2[0-4][0-9]|\.25[0-5]){3}',i):
#        if re.findall('(?:19[2-9]|2[0-1][0-9]|22[0-3])(?:\.25[0-5]|\.2[0-4]\d|\.[0-1]?\d?\d){3}',i):
#            print(re.findall('(?:19[2-9]|2[0-1][0-9]|22[0-3])(?:\.25[0-5]|\.2[0-4]\d|\.[0-1]?\d?\d){3}',i))
         #   print(re.findall('(?:19[2-9]|2[0-1][0-9]|22[0-3])(?:\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}',i))
            print(re.findall('(?:19[2-9]|2[0-1][0-9]|22[0-3])(?:\.[0-9]|\.[1-9][0-9]|\.1[0-9][0-9]|\.2[0-4][0-9]|\.25[0-5]){3}',i))
